package sign_in.loginsystem.mapper;


import org.apache.ibatis.annotations.Mapper;
import sign_in.loginsystem.model.entity.Department;
import sign_in.loginsystem.model.entity.User;

import java.util.ArrayList;

@Mapper
public interface DepartmentMapper {

    boolean creatDepartment(Department department);

    ArrayList<Department> allDepartment();

    Integer allDepartmentNum();

    boolean editDepartment(Department department);

    boolean deleteDepartment(Department department);

    Department searchDepartmentById(Integer id);

    boolean setUpDepartmentUser(User user);

    boolean editDepartmentUser(User user);

    boolean deleteDepartmentUser(User user);

    ArrayList<User> searchUserByDepartmentId(Department department);

}
